﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MAPDavy.Entities;
using MAPDavy.Repository;
using Microsoft.Practices.Unity;

namespace MAPDavy.BusinessLogic
{
    public class GradeBL:IGradeBL
    {
        [Dependency]
        public IGradeRepository GradeRepository { get; set; }

        public List<Grade> GetAllFromGrade()
        {
            return GradeRepository.GetAllFromGrade();  
        }


        public List<Grade> GetFromGradeByTermId(int termId)
        {
            return GradeRepository.GetFromGradeByTermId(termId); 
        }
    }
}
